var vm = new Vue({
	el:'#rrapp',
	data:{
		q:{
			
		},
		showList: true,
		title: null,
		suboperation: {}
	}, 
	methods: {
		save: function () {
            if(vm.validator()){
                return ;
            }
            var url = "sub/oper/save";   
			$.ajax({
				type: "POST",
			    url: baseURL + url,
                contentType: "application/json",
			    data: JSON.stringify(vm.suboperation),
			    success: function(r){
			    	if(r.code === 0){
						alert('操作成功', function(){
							vm.reload();							
						});
					}else{
						alert(r.msg);
					}
				}
			});
		},	
		reload: function () {
			 
		},
        validator: function () {//容错
        	
        }
	}	
});


